Linux and Cloud computing--the second phase of Linux Server SetupThe 11th chapter:Agent Proxy Server Erection-squid configuration Reverse ProxyReverse proxy settings[1]ConfigurationSquid.[Email protected] ~]# vim/etc/squid/squid.conf#: Add ( allow all http access )Http_access Allow all# line: Specify the backend Web se
a www.bkjia.com
Or: (recommended)
Http_port 80 transparent
Cache_peer 192.168.1.156 parent 8000 0 no-query originserver name =
Cache_peer 192.168.1.144 parent 80 0 no-query originserver name = B
Cache_peer_domain a www.bkjia.com
Cache_peer_domain B www.bkjia.net
Then the access is normal again.
2. Reverse ProxyAccess Denied Access control configuration prevents your request from being allowed at this time
Apache forward proxy and reverse proxy configuration Sample forward proxy configuration:
Proxyrequests on
Proxyvia on
Order deny, allow
Deny from all
Allow from 192.168.0
Cacheenable D
This article has a V-type knowledge base to provideUpstream Tomcat {Server 127.0.0.1:82;}Location/{Proxy_pass Http://tomcat;}As configured above, the reverse proxy is accessed using http://test.xxx.com/, but the link in the page becomes:Http://tomcat:82/xxxx.htmlI would like to ask you, this how to configure, in order to make the page inside the link address is http://test.xxx.com/xxxx.htmlWorkaround:Locati
:\ ip= # DoNot let this cookie tell our internal IP address Listen Appli3-relais0.0.0.0:10003Dispatch192.168.135.17: theListen Appli4-backup0.0.0.0:10004option Httpchk/index.html option persist balance Roundrobin server Inst1192.168.114.56: theCheck Inter -Fall3Server Inst2192.168.114.56:BayiCheck Inter -Fall3Backup Listen SSL-relay0.0.0.0:8443option SSL-hello-chk Balance Source server Inst1192.168.110.56:443Check Inter -Fall3Server Inst2192.168.110.57:443Check Inter -Fall3Server Back1192.168.12
server drops significantly.Figure 3 Reverse proxy Server as a load balancerReference content:1, Baidu Encyclopedia2,http://www.oracle.com/technetwork/indexes/documentation/index.html
Chapter:nginx Basic Operation Explanation
1. Nginx Port Modification Problem
2. Nginx 301 Redirection Configuration
3. Configure the Nginx
In order to save money, the company needs to be distributed in different machine sites are migrated to a machine, and now different machines are running different Web services, part Nginx, part of Apache, because of the more rewrite rules involved, in order to save changes in Kung Fu, After the plan to migrate the site still use the original Web services, but the same machine 80 port can only be assigned to a Web service use, so the plan Nginx use 80,apache other ports such as 8088, through the
Nginx reverse proxy configuration with Apache backend federated configuration: Description: Nginx maps http to a specific subdirectory on Apache. Configuration method steps: 1. Set the domain name, the sub-domain map to the specified server ip,2. Nginx set up the server, as
The reverse proxy uses Nginx's proxy_pass function .Location/{ Proxy_pass http://baidu.com; This allows the directory to be accessed by the site to be forwarded to other sites. (can be used to scan the site directory, make mirror station, etc...) )Full configuration file:#user nobody;worker_processes 1; #error_log logs/error.log; #error_log l
Nginx reverse proxy configuration (with the complete configuration file)
The reverse proxy uses the nginx proxy_pass function.
location / { proxy_pass http://baidu.com; }
In this way, the directories accesse
nginx.csr OpenSSL ca-in nginx.csr-out nginx.crt-days=3650
3. Create a client browser certificate
(umask 077;openssl genrsa-out client.key 1024)
OpenSSL req-new-key client.key-out client.csr OpenSSL ca-in client.csr-out client.crt-days=3650
Convert a certificate in text format to a certificate that can be imported into a browser
OpenSSL pkcs12-export-clcerts-in Client.crt-inkey client.key-out client.p12
4. Configure Nginx Server Authentication
Many of the opening articles on the network say a lot of principles and the like here we directly start configuration. but also want to simply say win under configure reverse proxy only IIS7 above version can realize this function, here we use WINDOWS2008 R2 to do as test 2008r2 installed IIS 7.5, we need to implement the rev
Nginx reverse proxy for load Balancing configuration diagram[Introduction] Load Balancing configuration is a very large machine needs to consider some of the problems, but also a data security approach, let me introduce the reverse proxy
corresponding server specific port", really likes big Pu rush.Related knowledge: Nginx compiler installation, Nginx reverse proxy basic configuration, routing port mapping knowledge, as well as network domain name and other common sense.The objective of this experiment is to do: in the browser input xxx123.tk can access to the intranet machine 192.168.10.38 3000
index.html file, which is written in the Nginx,apache2 word is sufficient. then we configure the Nginx configuration file, generally nginx.conf this file, modify the configuration information inside. Location /{ proxy_pass 127.0.0.1:8080;}at the same time to start Nginx and Apache, visit 127.0.0.1, you will find a magical thing, altogether output Apache, obviously nginx server directory there is no output
Nginx configuration reverse proxy (Apache + nginx), nginxapache
Due to its efficient concurrent processing capability, nginx has been accepted and recognized by more and more people. Many websites now use nginx instead of apache to process static pages. However, in terms of dynamic pages, apache has its own uniqueness.
The following describes what is a
Nginx configuration reverse proxy (Apache + nginx)
Due to its efficient concurrent processing capability, nginx has been accepted and recognized by more and more people. Many websites now use nginx instead of apache to process static pages. However, in terms of dynamic pages, apache has its own uniqueness.
The following describes what is a
, which is written on the nginx,apache2 word is sufficient. We then configure the Nginx configuration file, typically nginx.conf this file, to modify the configuration information inside. Location/{Proxy_pass 127.0.0.1:8080} start Nginx and Apache at the same time, when you visit 127.0.0.1, you will find a magical thing, the output of Apache, Obviously Nginx server directory there is no output, but Apache,
modifications below assume that we have run nginx-s reload to reload the configuration file after the modification is complete, please note.Everything's okay, and then we reopen http://localhost, and we see the following page:
At this time, we found that it is not just the Welcome page, but Tomcat management page, no matter what we click on the link is no problem, the equivalent of direct access to http://localhost:8080.3 above we directly tried a
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.